package tema03.entitats_3d;

public class Complejo {
private double real, imag;

public boolean equals(Object obj) {
	if (obj == null) {
		return false;
	}
	if (!obj.getClass().equals(this.getClass()))
		return false;
	Complejo otro = (Complejo) obj;
	return this.real == otro.real && this.imag == otro.imag;
}


public Complejo(double real, double imag) {
	this.real = real;
	this.imag = imag;
}


public double getReal() {
	return real;
}

public void setReal(double real) {
	this.real = real;
}

public double getImag() {
	return imag;
}

public void setImag(double imag) {
	this.imag = imag;
}
}
